package org.cboard.pojo;

import java.util.Date;

import org.cboard.dto.WidgetLinkBase;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 联动实体表
 * @author yh
 *
 */
public class DashboardWidgetLink extends WidgetLinkBase {
	
	/**
	 * 主键ID
	 */
	private Long id;
	/**
	 * 联动者图表Id
	 */
	private Long activeWidgetId;
	
	
	private String activeWidgetName;
	
	/**
	 * 被联动图表Id
	 */
	private Long passiveWidgetId;
	
	private String passiveWidgetName;
	
	/**
	 * 创建人
	 */
	private String createUserId;

	/**
	 * 上次更新人
	 */
	private String updateUserId;
	
	/**
	 *创建时间 
	 */
	private Date createDate;

	/**
	 * 上次更新时间
	 */
	private Date updateDate;
	
	
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

 
	public Long getActiveWidgetId() {
		return activeWidgetId;
	}

	public void setActiveWidgetId(Long activeWidgetId) {
		this.activeWidgetId = activeWidgetId;
	}

	public Long getPassiveWidgetId() {
		return passiveWidgetId;
	}

	public void setPassiveWidgetId(Long passiveWidgetId) {
		this.passiveWidgetId = passiveWidgetId;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public String getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId;
	}

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")    
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getActiveWidgetName() {
		return activeWidgetName;
	}

	public void setActiveWidgetName(String activeWidgetName) {
		this.activeWidgetName = activeWidgetName;
	}

	public String getPassiveWidgetName() {
		return passiveWidgetName;
	}

	public void setPassiveWidgetName(String passiveWidgetName) {
		this.passiveWidgetName = passiveWidgetName;
	}
	
	
	
	
}
